﻿@using StsServerIdentity.Resources
@inject LocService SharedLocalizer
@model StsServerIdentity.Models.ErrorViewModel
@{
    var error = Model?.Error?.Error;
    var request_id = Model?.Error?.RequestId;
}
<div class="error-page">
    <div class="page-header">
        <h1>Error</h1>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="alert alert-danger">
                Sorry, there was an error

                @if (error != null)
                {
                    <strong>
                        <em>
                            : @error
                        </em>
                    </strong>
                }
            </div>
            @if (request_id != null)
            {
                <div class="request-id">Request Id: @request_id</div>
            }
        </div>
    </div>
</div>
